package client;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 *
 * @author matthiaskaran
 *
 */
public interface IRMICallback extends Remote {
	
	/**
	 * method that gets called when a file that a user subscribed to, has been downloaded often enough
	 * @param numberOfDownloads 
	 * @param string filename
	 * @throws RemoteException
	 */
	public void notifySubscription(String string, int numberOfDownloads) throws RemoteException;
	
	/**
	 * the username of this client
	 * @return
	 * @throws RemoteException
	 */
	public String clientName() throws RemoteException;

}
